<?php
/** @var ContentController $this */
/** @var Channel $channel */

$channel = $this->getChannel();
$this->pageTitle = '查看' . $channel->getBundleName();

$this->breadcrumbs = $this->generateBreadcrumb($channel);
$this->breadcrumbs[$channel->title] = array('index', 'channel_id' => $channel->id);
$this->breadcrumbs[] = $this->pageTitle;

$this->menu = array(
	array('label' => $channel->title, 'url' => array('index', 'channel_id' => $channel->id), 'icon' => 'list'),
	array('label' => '创建' . $channel->getBundleName(), 'url' => array('create', 'channel_id' => $channel->id), 'icon' => 'plus'),
	array('label' => '更新' . $channel->getBundleName(), 'url' => array('update', 'id' => $_model->id, 'channel_id' => $channel->id), 'icon' => 'pencil'),
	array('label' => '删除' . $channel->getBundleName(), 'url' => '#', 'icon' => 'trash', 'linkOptions' => array('csrf' => true, 'submit' => array('delete', 'id' => $_model->id, 'channel' => $channel->id), 'confirm' => '确定要删除这条数据吗?')),
);
?>

<div class="page-header">
	<h1><?php echo $this->pageTitle; ?></h1>

	<div class="btn-group pull-right">
		<button data-toggle="dropdown" class="btn btn-primary dropdown-toggle"> 操作 <span class="caret"></span></button>
		<?php $this->widget('bootstrap.widgets.TbDropdown', array(
			'items' => $this->menu,
		))?>
	</div>
</div>

<?php echo $this->renderContentPartial($model, '_view', array('model' => $model, 'channel' => $channel)); ?>
